/**
 * Created with IntelliJ IDEA.
 * ClassName: Binary
 * Package: PACKAGE_NAME
 * Description:
 * User: fzykd
 *
 * @Author: LQH
 * Date: 2023-06-16
 * Time: 20:15
 */

//常用进制
public class Binary {
    public static void main(String[] args) {
        int num1 = 103;

        int num2 = 0b10; // 二进制 0b或者0B开头

        int num3 = 023; //八进制 0开头

        int num4 = 0x23a; //十六进制 0x或者0X开头 字母不区分大小写

        //存储都是以二进制方式存储 展出出来看都是再将二进制转为十进制
        System.out.println(num1); //103
        System.out.println(num2); //2
        System.out.println(num3); //19
        System.out.println(num4); //570

    }
}
